The 'clear( )' Function can be used to remove all the elements from the Set.
x = {"Mohan", "Kriti", "Salim"} x.clear() print(x)
So, in the above code we have created a 'Set' and initialised to the variable 'x'.
Next, we have used the 'clear( )' function that removes all the elements from the Set making the Set empty.
And we get an empty Set as output,
The output 'set( )' means, it represents an empty Set.